package com.ruoyi.pms.domain.vo;

import lombok.Data;

import java.util.Date;

@Data
public class TaskUserVO {
    public TaskUserVO(String type) {
        if("init".equals(type)) {
            this.taskCount = 0;
            this.score = 0.0;
            this.overdue = 0;
            this.completed = 0;
            this.doing = 0;
            this.awaitAssmt = 0;
            this.assmted = 0;
        }
    }
    /**
     * 用户id
     */
    private String userId;
    /**
     * 用户姓名
     */
    private String userName;
    /**
     * 开始时间
     */
    private Date startDate;
    /**
     * 截止时间
     */
    private Date endDate;
    /**
     * 任务总数
     */
    private Integer taskCount;
    /**
     * 已逾期
     */
    private Integer overdue;
    /**
     * 已完成
     */
    private Integer completed;
    /**
     * 进行中
     */
    private Integer doing;
    /**
     * 待考核
     */
    private Integer awaitAssmt;
    /**
     * 已考核
     */
    private Integer assmted;
    /**
     * 平均分
     */
    private Double score;

    private String scoreStr;

}
